//
Rsd.define('Rsd.Faith.dialogs.FiscalKaiFangShangJiaoCunDialog', {
    extend: 'Rsd.view.MajorSubDialog',
    requires: [
        'Rsd.controlEx.MajorSubViewer',
        'Rsd.Faith.stores.ListStore'
    ],
    title:'开发商申请交存信息',
    sub: {
        fk:'ShenQingBianHao',
        toolBar:{
            xtype:'grid-tool-bar-simple',
            newButtons:[
                {xtype:'label',text:'★ 下方列表为该楼栋房屋交存信息👇'}
            ]},
        columns:  [
            {
                "text": "序号",
                "xtype": "index",
                "width": 40,
                "index": 0
            },
            /*{
                "name": "ShenQingBianHao",
                "dataIndex": "ShenQingBianHao",
                "sortable": false,
                "text": "申请编号",
                "index": 20,
                "exist": true,
                "xtype": "string",
                "width": 150,
                "nobr": true
            },*/
            {
                "name": "FangWuDaiMa",
                "dataIndex": "FangWuDaiMa",
                "sortable": false,
                "text": "房屋代码",
                "index": 21,
                "exist": true,
                "xtype": "string",
                "width": 150,
                "nobr": true
            },
            {
                "name": "ShiHao",
                "dataIndex": "ShiHao",
                "sortable": false,
                "text": "室号",
                "index": 22,
                "exist": true,
                "xtype": "string",
                "width": 150,
                "nobr": true
            },
            {
                "name": "MianJi",
                "dataIndex": "MianJi",
                "sortable": false,
                "text": "面积",
                "index": 24,
                "exist": true,
                "xtype": "number",
                "width": 100,
                "precision": 2
            },
            {
                "name": "JiaoCunBiaoZhun",
                "dataIndex": "JiaoCunBiaoZhun",
                "sortable": false,
                "text": "交存标准",
                "index": 26,
                "exist": true,
                "xtype": "string",
                "width": 150,
                "nobr": true
            },
            {
                "name": "YingJiaoJinE",
                "dataIndex": "YingJiaoJinE",
                "sortable": false,
                "text": "应交金额",
                "index": 28,
                "exist": true,
                "xtype": "number",
                "width": 100,
                "precision": 2
            },
            {
                "name": "Remark",
                "dataIndex": "Remark",
                "sortable": false,
                "text": "备注",
                "index": 200,
                "exist": true,
                "xtype": "string",
                "width": 150,
                "nobr": true
            }
        ]
    },
    major: {
        modelType:'Rsd.Faith.Models.FiscalKaiFaShangJiaoCunShenQingModel',
        height:190,
        legend: '楼栋信息',
        key:'BianHao',
        "fields": [
            /*{
                "name": "ShenQingBianHao",
                "label": {
                    "width": 100,
                    "content": "申请编号"
                },
                "dataIndex": "ShenQingBianHao",
                "index": 20,
                "exist": true,width:290,
                "xtype": "text",
                "length": 20
            },*/
            {
                "name": "XiaoQuBianHao",
                "label": {
                    "width": 100,
                    "content": "小区编号"
                },
                "dataIndex": "XiaoQuBianHao",
                "index": 22,
                "exist": true,width:290,
                "xtype": "text",
                "length": 20
            },
            {
                "name": "LouDongBianHao",
                "label": {
                    "width": 100,
                    "content": "楼栋编号"
                },
                "dataIndex": "LouDongBianHao",
                "index": 24,
                "exist": true,width:290,
                "xtype": "text",
                "length": 20
            },
            {
                "name": "ShangShiBianHao",
                "label": {
                    "width": 100,
                    "content": "上市楼宇编号"
                },
                "dataIndex": "ShangShiBianHao",
                "index": 26,
                "exist": true,width:290,
                "xtype": "text",
                "length": 20
            },
            {
                "name": "LouDongHao",
                "label": {
                    "width": 100,
                    "content": "楼栋号"
                },
                "dataIndex": "LouDongHao",
                "index": 28,
                "exist": true,width:290,
                "xtype": "text",
                "length": 250
            },
            {
                "name": "SuoZaiQu",
                "label": {
                    "width": 100,
                    "content": "所在区"
                },
                "dataIndex": "SuoZaiQu",
                "index": 30,
                "exist": true,width:290,
                "xtype": "text",
                "length": 50
            },
            {
                "name": "DiZhi",
                "label": {
                    "width": 100,
                    "content": "地址"
                },
                "dataIndex": "DiZhi",
                "index": 32,
                "exist": true,width:580,
                "xtype": "text",
                "length": 120
            },
         /*   {
                "name": "KaiFaShangBianHao",
                "label": {
                    "width": 100,
                    "content": "开发商编号"
                },
                "dataIndex": "KaiFaShangBianHao",
                "index": 34,
                "exist": true,width:290,
                "xtype": "text",
                "length": 10
            },*/
            {
                "name": "KaiFaShangMingCheng",
                "label": {
                    "width": 100,
                    "content": "开发商名称"
                },
                "dataIndex": "KaiFaShangMingCheng",
                "index": 36,
                "exist": true,width:290,
                "xtype": "text",
                "length": 10
            },
            {
                "name": "ZongCengShu",
                "label": {
                    "width": 100,
                    "content": "总层数"
                },
                "dataIndex": "ZongCengShu",
                "index": 38,
                "exist": true,width:290,
                "xtype": "number",
                "precision": 0
            },
            {
                "name": "YouDianTi",
                "label": {
                    "width": 100,
                    "content": "是否有电梯"
                },
                "dataIndex": "YouDianTi",
                "index": 39,
                "exist": true,width:290,
                "xtype": "number",
                "precision": 0
            },
            {
                "name": "DiMianCengShu",
                "label": {
                    "width": 100,
                    "content": "地面层数"
                },
                "dataIndex": "DiMianCengShu",
                "index": 40,
                "exist": true,width:290,
                "xtype": "number",
                "precision": 0
            },
            {
                "name": "ZongHuShu",
                "label": {
                    "width": 100,
                    "content": "总户数"
                },
                "dataIndex": "ZongHuShu",
                "index": 42,
                "exist": true,width:290,
                "xtype": "text",
                "length": 256
            },
            {
                "name": "ZongMianJi",
                "label": {
                    "width": 100,
                    "content": "总面积"
                },
                "dataIndex": "ZongMianJi",
                "index": 44,
                "exist": true,width:290,
                "xtype": "number",
                "precision": 2
            },
            {
                "name": "YingJiaoJinE",
                "label": {
                    "width": 100,
                    "content": "应交金额"
                },
                "dataIndex": "YingJiaoJinE",
                "index": 46,
                "exist": true,width:290,
                "xtype": "number",
                "precision": 2
            },
            {
                "name": "JinEDaXie",
                "label": {
                    "width": 100,
                    "content": "金额大写"
                },
                "dataIndex": "JinEDaXie",
                "index": 48,
                "exist": true,width:290,
                "xtype": "text",
                "length": 256
            },
            {
                "name": "SuoShuQi",
                "label": {
                    "width": 100,
                    "content": "入账所属期"
                },
                "dataIndex": "SuoShuQi",
                "index": 50,
                "exist": true,width:290,
                "xtype": "text",
                "length": 20
            },
            {
                "name": "JiaoNaRiQi",
                "label": {
                    "width": 100,
                    "content": "交纳日期"
                },
                "dataIndex": "JiaoNaRiQi",
                "index": 52,
                "exist": true,width:290,
                "xtype": "date",
                "formatString": "yyyy-MM-dd"
            },
            {
                "name": "ZhuangTai",
                "label": {
                    "width": 100,
                    "content": "状态"
                },
                "dataIndex": "ZhuangTai",
                "index": 54,
                "exist": true,width:290,
                "xtype": "combobox-enum",
                "enum": {
                    "name": "Rsd.Faith.Core.KaiFaShangJiaoCunZhuangTai",
                    "valueMember": "code",
                    "textMember": "text",
                    "items": [
                        {
                            "code": "DJ",
                            "value": 0,
                            "text": "已登记,待审核"
                        },
                        {
                            "code": "TG",
                            "value": 1,
                            "text": "审核通过"
                        },
                        {
                            "code": "JJ",
                            "value": 2,
                            "text": "审核不通过"
                        },
                        {
                            "code": "YJ",
                            "value": 3,
                            "text": "已交款,待确认"
                        },
                        {
                            "code": "RZ",
                            "value": 4,
                            "text": "已确认入账"
                        }
                    ]
                }
            },
            {
                "name": "Remark",
                "label": {
                    "width": 100,
                    "content": "备注"
                },
                "dataIndex": "Remark",
                "index": 200,
                "exist": true,width:290,
                "xtype": "text",
                "length": 100
            }
        ]

    },
    width: 1200,
    height: 600,
    showClose:true,
    /*
     *
     * */
    constructor :function constructor(config) {
        config = config || {};
        this.apply(config);

    }
});